<template>
	<view :style="type=='hr'?'padding-bottom:30rpx':''" class="content">
		<view class="block">
			<view class="text fw fs17" style="display: flex;justify-content: center;font-size: 42rpx;">{{list.jobTitle}}
			</view>
			<view class="top-content" style="justify-content: space-between;">
				<view style="display: flex;flex-direction: row;align-items: center;">
					<view class="iconfont icon-shijian"></view>
					<view class="text" style="margin-right: 10rpx;">{{list.crtTimeText }}更新</view>
				</view>
				<view class="text" style="margin-right: 10rpx;">投递量:{{list.deliveryCount}}</view>
				<view class="text">浏览量:{{list.lookCount}}</view>
			</view>
			<view class="text fs13 darkgray" style="margin: 20rpx 0 20rpx 0;">酒泉·玉门市 /
				{{list.expRequireText}}{{list.expRequireText == '无工作经验' ? '' : '年'}} /
				{{list.minEducationText}}
			</view>
			<view class="text fs13 darkgray" style="margin: 20rpx 0 20rpx 0;">
				<text>岗位需求人数：</text>
				<text style="color: #FF7626;">{{list.jobNumber}}人</text>
			</view>
			<view class="salary-block" style="display: flex;flex-direction: row;justify-content: space-between;">
				<view class="wage-item">
					<view class="text wage" v-if="list.recruitType==1">
						<teleport v-if="list.minSalary"><text class="unit">月薪：</text>
							{{list.minSalary}}-{{list.maxSalary}}<text class="unit">元</text>
						</teleport>
						<teleport v-else>
							面议
						</teleport>
					</view>
					<view class="text wage" v-if="list.recruitType==2">{{list.minSalary}}<text class="unit">天</text>
					</view>
				</view>
				<view class="icon-item" v-if="user">
					<view @click="share" class="iconfont"
						style="margin-right: 16rpx;display: flex;align-items: center;">
						<view class="iconfont icon-a-fenxiang" style="margin-right: 4rpx;color: #999;">分享</view>
					</view>
					<view
						@click="navigate('/page_other/report/index?id='+list.comRecruiters.enterprise.id+'&pid='+list.id)"
						class="iconfont" style="margin-right: 16rpx;display: flex;align-items: center;">
						<view class="iconfont icon-jubao" style="margin-right: 4rpx;color: #999;">举报</view>
					</view>
					<view class="iconfont icon-shoucang" v-if="list.collection===0" @click="addCollect"
						style="color: #999;">收藏</view>
					<view class="iconfont icon-shoucang2" style="color: #FF7626;" v-if="list.collection===1"
						@click="insertCollect"><text style="color: #999;">已收藏</text></view>
				</view>
			</view>
		</view>
		<view class="alert" style="margin-bottom: 30rpx;">
			<view class="alert-time-iconfont">
				<view class="iconfont icon-xinxi" style="font-size: 56rpx;"></view>
			</view>
			<view class="alert-time">
				<view style="display: flex;">
					<view class="alert-title">用工警告</view>
				</view>

				<view class="alert-time-text">
					平台严禁用人单位做出任何损害求职者合法权益的违法违规行为，包括但不限于扣押求职者证件、收取求职者财物、向求职者集资、让求职者入股等，您一旦发现此类行为，请立即进行举报！
				</view>
			</view>
		</view>
		<view class="block">
			<view class="text fw fs15">职位描述</view>
			<text>{{list.jobDescription.replace(/\\n/,'\n')}}</text>

		</view>
		<view class="block">
			<view class="text fw fs15">职位福利</view>
			<view class="label-block">
				<template v-if="list.comRecruiters.enterprise.welfareList">
					<view class="label-item" v-for="(item,index) in list.comRecruiters.enterprise.welfareList"
						:key="item.id">{{item}}</view>
				</template>
				<view v-else>无</view>
			</view>
		</view>
		<view class="block">
			<view class="text fw fs15">职位地址</view>
			<view class="label-block"
				@click="navigate('/page_other/base_map/public?longitude='+list.longitude+'&latitude='+list.latitude+'&title='+list.jobTitle)">
				<view v-if="list.jobAddress" class="label-tile">
					<view class="menu-icon">
						{{list.jobAddress}}
					</view>
					<view style="color: #FE6335;font-size: 50rpx; padding-right: 40rpx; margin-top: -10rpx;"
						class="iconfont icon-dingwei"></view>
				</view>
				<view v-else>无</view>
			</view>
		</view>
		<view class="block">
			<view class="text fw fs15">联系方式</view>
			<view class="label-tile" @click="callPhone">
				<view>{{list.comRecruiters.user.mobile}}</view>
				<view style="color: #FE6335;font-size: 50rpx; padding-right: 40rpx; margin-top: -10rpx;"
					class="iconfont icon-dianhuatianchong"></view>
			</view>


		</view>
		<view v-if="type!='hr'" hover-class="none"
			@click="navigate('/page_other/company/company?id='+list.comRecruiters.enterprise.id)"
			class="block enterprise">
			<view class="enterprise-item">
				<image :src="list.comRecruiters.enterprise.logoUrl" class="photo"></image>
				<view class="info">
					<view class="name fw fs15" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
						{{list.comRecruiters.enterprise.enterpriseName}}
					</view>
					<view class="other darkgray fs13">
						{{list.comRecruiters.enterprise.enterpriseTypeText||'暂无'}}&nbsp;·&nbsp;{{list.comRecruiters.enterprise.scaleName||'暂无'}}
					</view>
					<view class="authentication" style="display: flex;flex-direction: row; margin-top: 16rpx;">
						<view class="icon-item"
							style="display: flex;flex-direction: row; margin-right: 20rpx;align-items: center;">
							<view class="iconfont icon-jibenziliao"
								style="color: #FF8888; font-size: 36rpx;font-weight: bold;"></view>
							<view class="text" style="font-size: 24rpx;">已认证营业执照</view>
						</view>
						<view class="icon-item" style="display: flex;flex-direction: row;align-items: center;">
							<view class="iconfont icon-wode" style="color: #79DEA2;font-weight: bold;"></view>
							<view class="text" style="font-size: 24rpx;">已认证手机号</view>
						</view>
					</view>
					<view class="jobs fs13 darkgray"><text
							class="num">{{list.comRecruiters.enterprise.fairCount}}</text>个热招职位</view>
				</view>
			</view>
			<!-- <map style="width: 100%; height: 250px;" :latitude="list.latitude" :longitude="list.longitude" :markers="markers">
			</map> -->
		</view>
		<view class="job-block">
			<view class="title-block">
				<view class="title">猜你喜欢</view>
				<!-- <view class="more" @click="navigate('/page_other/job_hunting/job_list/index?type=1&name=找全职')">查看更多
					<i class="iconfont icon-gengduo1"></i>
				</view> -->
			</view>
			<template v-if="jobList.length>0">
				<view class="position-block">
					<view @click="navigate('/page_other/job_hunting/job_detail/index?id='+item.id)" class="list-item"
						v-for="(item,index) in jobList" :key="item.id">
						<view class="list-info">
							<view class="title">{{item.jobTitle}}</view>
							<view class="address">{{item.jobAddress}}</view>
							<view class="label-block">
								<view class="label-item" v-for="label in item.label">{{label}}</view>
							</view>
							<view class="wage" v-if="item.minSalary">{{item.minSalary}}-{{item.maxSalary}}<text
									class="unit">元</text>
							</view>
							<view class="wage" v-else>面议</text>
							</view>
						</view>
						<view class="detail-info">
							<view class="name">{{item.comRecruiters.comPosition}}</view>
							<image mode="aspectFill" :src="item.comRecruiters.user.faceUrl" class="photo"></image>
						</view>
					</view>
				</view>
			</template>
			<view v-else class="empty">暂无数据</view>
		</view>
		<view v-if="type!='hr'" class="contact">
			<image @click="navigate('/page_other/company/person_detail?id='+list.comRecruiters.id)"
				:src="list.comRecruiters.user.faceUrl" mode="aspectFill" class="photo">
			</image>
			<view @click="navigate('/page_other/company/person_detail?id='+list.comRecruiters.id)" class=" name-block">
				<view class="fs15 fw">{{list.comRecruiters.comPosition}}</view>
				<view class="fs12">{{list.comRecruiters.realName}}</view>
			</view>
			<view class="btn-block">
				<view class="resume" @click="resume" v-if="list.resume==0||!user">投简历</view>
				<view class="resume" v-if="list.resume&&list.resume!=0">已投递</view>
				<view class="chat" @click="dialogue('您好，我在码上就业上看到贵公司的招聘信息，对贵公司【'+list.jobTitle+'】岗位很感兴趣，期待与您沟通。')">立即沟通
				</view>
			</view>
		</view>
		<SuccessDialog v-if="showDialog" cancelText="查看我收藏的职位" confirmText="继续找工作" @callback="dialogCallback">
			<slot style="display: flex;flex-direction: column;">
				<image src="/static/tabbar/3adf1ae20d1e3f45cc08c75cbf181b1.png" style="width: 150rpx;height: 150rpx;">
				</image>
				<view style="color: #000;">收藏成功！</view>
			</slot>
		</SuccessDialog>

		<ShareDialog v-if="shareShow" cancelText="保存图片" confirmText="取消" @callback="shareCallback">
			<slot style="display: flex;flex-direction: column;">
				<image :src="shareImg" style="height: 1004rpx;">
				</image>
			</slot>
		</ShareDialog>

	</view>
</template>

<script>
	import {
		findAllJobById,
		insertLookMe,
		insertWorkApplyApi,
		GuessYouLoveApi,
		doJobPublishShareApi,
		doOperationRecordsApi
	} from '@/api/job_hunting.js';
	import {
		sendHiMessage,
		getToAccount
	} from '@/util/im.js';
	import {
		getIntentionList as getIntentionListApi,

	} from '@/api/resume.js';
	import SuccessDialog from '@/page_other/components/SuccessDialog/SuccessDialog.vue';
	import ShareDialog from '@/page_other/components/SuccessDialog/ShareDialog.vue';
	import {
		getScene
	} from '@/util/util.js'
	export default {
		components: {
			SuccessDialog,
			ShareDialog
		},
		data() {
			return {
				showDialog: false,
				id: null,
				type: null,
				jobType: null,
				intention: true,
				shareImg: '',
				shareShow: false,
				list: {
					jobTitle: '',
					expRequireText: '',
					minEducationText: '',
					crtTimeText: '',
					deliveryCount: '',
					lookCount: '',
				},
				latitude: 40.142066,
				longitude: 98.571037,
				enroll: {},
				imageUrl: '',
				count: null,
				jobList: [],
				markers: [{
					id: 1, // Number
					title: '1', // String-标注点名
					rotate: 0, // Number - 顺时针旋转的角度，范围 0 ~ 360，默认为 0
					alpha: 1, // 默认1，无透明，范围 0 ~ 1
					latitude: 0,
					longitude: 0,
					width: 30,
					height: 30,
					iconPath: 'https://www.mashangjiuye.cn/file/91885/dunhuang/lMkpNQQOqj.png', // 显示的图标
				}]

			}
		},
		methods: {
			//onShareAppMessage 分享给朋友
			//onShareTimeline  分享到朋友圈
			// #ifdef MP
			onShareAppMessage: function(res) {
				this.getCount(1)
				if (res.from === 'button') {
					// 来自页面内转发按钮
					console.log(res.target)
				}
				return {
					title: this.list.jobTitle,
					path: '/page_other/job_hunting/job_detail/index?id=' + this.list.id + '&jobType=' +
						this.jobType,
				}
			},
			// #endif
			onShareTimeline(res) {
				let distSource = uni.getStorageSync('distSource');
				this.getCount(1)
				if (distSource) {
					return {
						title: this.list.jobTitle,
						path: '/page_other/job_hunting/job_detail/index?id=' + this.list.id + '&jobType=' +
							this.jobType,
						type: 0,
						query: 'id=' + distSource,
					}
				}
			},
			callPhone() {
				if (this.isLogin()) {
					let para = {
						cancelText: '我再想想',
						success: (confirm) => {
							if (confirm.confirm) {
								uni.makePhoneCall({
									phoneNumber: this.list.comRecruiters.user.userName,
									success() {
										console.log('拨打成功了');
									},
									fail() {
										console.log('拨打失败了');
									}
								})
								this.getCount(2)
							}
						}
					}
					para.title = '确认拨打';
					para.content = '平台严禁用人单位做出任何损害求职者合法权益的违法违规行为，包括但不限于扣押求职者证件、收取求职者财物、向求职者集资、让求职者入股等，您一旦发现此类行为，请立即进行举报！'
					para.confirmText = '拨打';
					uni.showModal(para);
				}

			},
			dialogCallback(e) {
				console.log(e);
				if (e) {
					this.showDialog = false;
				} else {
					uni.navigateTo({
						url: '/page_other/count_details/collect'
					})
					this.showDialog = false;
				}
			},
			shareCallback(e) {
				console.log(e);
				if (e) {
					this.shareShow = false;
				} else {
					this.savePoster();
				}
			},
			dialogue(msg) {
				if (!this.isLogin()) {
					return;
				}

				if (this.count == 1) {
					this.showToast('已投递');
					return;
				}
				try {
					sendHiMessage(msg, this.list.comRecruiters.user.userName, this.id).finally(() => {
						this.showToast('发送成功');
					});
				} catch (e) {
					console.log(e);
				}
			},
			isLogin() {
				if (!this.user) {
					uni.showModal({
						title: '提示',
						content: '需要先登录！',
						cancelText: '先逛逛',
						confirmText: '去登录',
						success(res) {
							if (res.confirm) {
								uni.switchTab({
									url: '/pages/mine/index'
								})
							} else {

							}
						}
					})
					return false;
				} else {
					return true;
				}
			},
			getCount(type) {
				uni.showLoading({
					title: '加载中'
				})
				doOperationRecordsApi({
					type: type,
				}).then((res) => {
					console.log(res)
				}).catch(() => {
					console.log(res)
				})
			},
			getIntention() {
				getIntentionListApi({
					id: 0
				}).then((res) => {
					if (!res) {
						this.intention = false
					} else {
						this.intention = true
					}

				})
			},
			resume() {
				if (!this.isLogin()) {
					return;
				}
				if (!this.intention) {
					uni.showModal({
						title: '提示',
						content: `您的简历未完善无法投递简历，是否前往完善？`,
						confirmColor: '#FF7626',
						success: (res) => {
							if (res.confirm) {
								uni.reLaunch({
									url: '/page_other/resume/index'
								})
							} else if (res.cancel) {
								return;
							}
						}
					})
					return
				}

				uni.showLoading({
					title: '投递中'
				})
				insertWorkApplyApi({
					publishId: this.list.id,
				}).then((res) => {
					uni.hideLoading();
					uni.redirectTo({
						url: '/page_other/job_hunting/job_detail/success?id=' + this.id + '&jobType=' +
							this.jobType + '&mobile=' + this.list.comRecruiters.user.userName + '&title=' +
							this.list.jobTitle
					})
					//this.showToast('投递成功');
					this.findAllJob()
					const message = uni.$TUIKit.createCustomMessage({
						to: 'enterprise_' + this.list.comRecruiters.user.userName,
						conversationType: uni.$TUIKitTIM.TYPES.CONV_C2C,
						payload: {
							data: 'sendResume',
							description: '',
							extension: JSON.stringify({
								agree: null
							})
						}
					})
					uni.$TUIKit.sendMessage(message)
					this.findAllJob();
				}).catch(() => {

				})
			},
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			GuessYouLove() {
				GuessYouLoveApi({
					jobType: this.jobType,
					page: 1,
					limit: 6,
					pubId: this.id
				}).then((res) => {
					this.jobList = res.list ?? [];
				}).catch((res) => {
					console.log(res)
				})
			},
			findAllJob() {
				findAllJobById({
					id: this.id
				}).then((res) => {
					this.list = res ?? [];
					this.jobType = this.list.jobType
					this.markers[0].latitude = this.list.latitude
					this.markers[0].longitude = this.list.longitude
					this.GuessYouLove()
				}).catch((res) => {
					console.log(res)
				})
			},

			addCollect() {
				uni.showLoading({
					title: '收藏中'
				})
				insertLookMe({
					pid: this.id,
					userType: 1,
					lookMeType: 3,
					state: 2
				}).then((res) => {
					this.showDialog = true;
					this.findAllJob();
					uni.hideLoading();
				}).catch(() => {
					console.log(res)
				})
			},

			share() {
				uni.showLoading({
					title: '加载中'
				})
				doJobPublishShareApi({
					id: this.id,
				}).then((res) => {
					console.log(res)
					this.shareImg = res
					this.shareShow = true;

				}).catch(() => {
					console.log(res)
				})
			},
			insertCollect() {
				uni.showLoading({
					title: '取消收藏中'
				})
				insertLookMe({
					pid: this.id,
					userType: 1,
					lookMeType: 3,
					state: 1
				}).then((res) => {
					uni.hideLoading();
					uni.showToast({
						title: '取消收藏成功',
						icon: 'success'
					});
					this.findAllJob();
				}).catch(() => {
					console.log(res)
				})
			},
			lookMe() {
				if (this.user) {
					insertLookMe({
						pid: this.id,
						userType: 1,
						lookMeType: 1,
						state: 2
					}).then((res) => {}).catch(() => {
						console.log(res)
					})
				}
			},
			savePoster() {
				uni.getSetting({ //获取用户的当前设置
					success: (res) => {
						if (res.authSetting['scope.writePhotosAlbum']) { //验证用户是否授权可以访问相册
							this.saveImageToPhotosAlbum();
						} else {
							uni.authorize({ //如果没有授权，向用户发起请求
								scope: 'scope.writePhotosAlbum',
								success: () => {
									this.saveImageToPhotosAlbum();
								},
								fail: () => {
									uni.showToast({
										title: "请打开保存相册权限，再点击保存相册分享",
										icon: "none",
										duration: 3000
									});
									setTimeout(() => {
										uni.openSetting({ //调起客户端小程序设置界面,让用户开启访问相册
											success: (res2) => {
												// console.log(res2.authSetting)
											}
										});
									}, 3000);
								}
							})
						}
					}
				})
			},
			saveImageToPhotosAlbum() {
				uni.downloadFile({ //下载
					url: this.shareImg, //图片下载地址网络地址
					success: res => {
						if (res.statusCode === 200) {
							uni.saveImageToPhotosAlbum({ //保存图片到系统相册。
								filePath: res.tempFilePath, //图片文件路径
								success: function() {
									uni.showToast({
										title: '保存成功，请从相册选择再分享'
									});
									this.shareShow = false;
								},
								fail: function(e) {
									console.log(e);
									uni.showToast({
										title: '图片保存失败',
										icon: 'none',
									});
								}
							});
						}
					}
				});

			},
		},
		computed: {
			user() {
				return this.$store.getters.user
			}
		},
		onShareAppMessage: function() { // 分享到微信
			// 更多参数配置，参考文档
			return {
				title: '岗位分享',
				path: '/page_other/job_hunting/job_detail/index?scene=id=' + this.id + '&share=1'
			}
		},

		onShareTimeline() { // 分享到朋友圈
			return {
				title: '岗位分享',
				path: '/page_other/job_hunting/job_detail/index?scene=id=' + this.id + '&share=1'
			}
		},
		onLoad(e) {
			if (!this.user && e.scene) {
				this.$store.commit('user/SET_IDENTITY', 1)
				let scene = getScene(e.scene);
				console.log(scene)
				this.id = scene.id;
			} else {
				this.id = e.id;
				this.type = e.type;
				this.count = e.count
				this.imageUrl = this.globalConfig.imageUrl;
				this.lookMe()
			}
			this.findAllJob();
			if (this.user) {
				this.getIntention()
			}
		}
	}
</script>

<style lang="scss">
	$box-shadow: 0 0 10px 0 #efefef;

	.content {
		width: 100%;
		padding: 30rpx;
		background: #FAFAFA;
		position: relative;
		padding-bottom: 120rpx;

		.alert {
			background-color: #fdf6ec;
			color: #e6a23c;
			width: 100%;
			display: flex;

			.alert-time-iconfont {
				padding-left: 20rpx;
				padding-top: 85rpx;
				color: #e6a23c;
				font-weight: bold;
			}

			.alert-time {
				padding-left: 20rpx;
				padding-top: 20rpx;
				font-size: 32rpx;
				color: #e6a23c;

				.alert-title {
					font-weight: bold;
				}

				.alert-time-text {
					font-size: 26rpx;
					margin: 20rpx 20rpx 20rpx 0;
				}
			}

		}

		.block {
			width: 100%;
			border-radius: 10rpx;
			background: #fff;
			box-shadow: $box-shadow;
			padding: 20rpx;

			view.text {
				line-height: 1.5;
			}

			.label-tile {
				width: 100%;
				border-radius: 10rpx;
				background: #fff;
				padding: 20rpx;
				justify-content: space-between;
				display: flex;
			}

			.top-content {
				display: flex;
				flex-direction: row;
				align-items: center;
				margin-bottom: 10rpx;
				margin-top: 10rpx;

				.iconfont {
					font-size: 24rpx;
					margin-right: 6rpx;
				}

				.text {
					font-size: 24rpx;
					color: #999;
				}
			}

			.icon-item {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				text-align: center;



				.text {
					font-size: 26rpx;
					color: #999;
				}

				.text {
					flex-grow: 1;
				}

				.iconfont {
					flex-grow: 0;
					font-size: 28rpx;
				}
			}

			margin-bottom:30rpx;

			.all {
				color: #FE7526;
			}

			.label-block {
				width: 100%;
				font-size: 24rpx;
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				justify-content: left;
				margin-top: 20rpx;

				.label-tile {
					width: 100%;
					border-radius: 10rpx;
					background: #fff;
					padding: 20rpx;
					justify-content: space-between;
					display: flex;
				}

				.label-item {
					padding: 8rpx 12rpx;
					background: #D9E8FF;
					border-radius: 4rpx;
					color: #1777FF;
					margin: 0 10rpx 20rpx 0;
				}
			}
		}

		.block:last-child {
			margin-bottom: 0;
		}

		.wage {
			color: #FE7526;
			font-size: 36rpx;
			font-weight: bold;

			.unit {
				font-size: 28rpx;
				font-weight: normal;
			}
		}

		.block.enterprise {
			display: flex;
			flex-direction: column;

			.enterprise-item {
				display: flex;
				flex-direction: row;
				margin-bottom: 20rpx;

				.photo {
					width: 180rpx;
					height: 180rpx;
					border-radius: 10rpx;
					margin-right: 20rpx;
				}

				.info {
					width: calc(100% - 180rpx);
					position: relative;

					.other,
					.jobs {
						margin-top: 10rpx;
					}

					.num {
						color: #FE7526;
					}

					.postion {
						position: absolute;
						bottom: 12rpx;
						right: 0;

						.iconfont {
							margin-right: 10rpx;
						}
					}
				}
			}

		}

		.job-block {
			background-color: #fff;
			padding: 30rpx;
			margin-top: 30rpx;

			.title-block {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				height: 80rpx;
				text-align: center;

				.title {
					font-size: 34rpx;
					margin-bottom: 20rpx;
					font-weight: bold;
				}

				.more {
					display: flex;
					flex-direction: row;
					font-size: 26rpx;
					color: #999;
					text-align: center;

					.iconfont {
						font-size: 24rpx;
						margin-top: 5rpx;
					}
				}
			}

			.position-block {
				box-shadow: none;
				display: flex;
				flex-direction: column;
				margin-bottom: 0;

				.list-item {
					width: 100%;
					background: #fff;
					border-radius: 10rpx;
					box-shadow: $box-shadow;
					padding: 20rpx;
					display: flex;
					flex-direction: row;
					justify-content: center;
					margin-bottom: 20rpx;

					.detail-info {
						width: 260rpx;
						height: 200rpx;
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						justify-content: center;
						align-items: center;

						.name {
							width: 110rpx;
							font-size: 24rpx;
							color: #999;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
							text-align: center;
							text-indent: 15rpx;
						}

						.photo {
							width: 70rpx;
							height: 70rpx;
							border-radius: 100%;
							background: #efefef;
						}

						.apply-btn {
							border: 1px solid #FE7526;
							border-radius: 8rpx;
							color: #FE7526;
							font-size: 24rpx;
							padding: 8rpx 28rpx;
							position: relative;
							left: 30rpx;
						}
					}

					.list-info {
						width: calc(100% - 180rpx);
						display: flex;
						flex-direction: column;

						>view {
							width: 100%;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.title {
							color: #000;
							font-weight: bold;
							font-size: 34rpx;
							width: 360rpx;
						}

						.address {
							color: #999;
							font-size: 26rpx;
							margin-top: 20rpx;
						}

						.label-block {
							font-size: 24rpx;
							display: flex;
							flex-direction: row;
							flex-wrap: wrap;
							justify-content: left;
							margin-top: 20rpx;

							.label-item {
								padding: 8rpx 20rpx;
								background: #F5F6F8;
								color: #999;
								margin: 0 10rpx 20rpx 0;
							}
						}

						.wage {
							color: #FE7526;
							font-size: 36rpx;
							font-weight: bold;

							.unit {
								font-size: 28rpx;
								font-weight: normal;
							}
						}
					}
				}
			}

			.position-block {
				box-shadow: none;
				display: flex;
				flex-direction: column;
				margin-bottom: 0;

				.list-item {
					width: 100%;
					background: #fff;
					border-radius: 10rpx;
					box-shadow: $box-shadow;
					padding: 20rpx;
					display: flex;
					flex-direction: row;
					justify-content: center;
					margin-bottom: 20rpx;

					.detail-info {
						width: 260rpx;
						height: 200rpx;
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						justify-content: center;
						align-items: center;

						.name {
							width: 110rpx;
							font-size: 24rpx;
							color: #999;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
							text-align: center;
							text-indent: 15rpx;
						}

						.photo {
							width: 70rpx;
							height: 70rpx;
							border-radius: 100%;
							background: #efefef;
						}

						.apply-btn {
							border: 1px solid #FE7526;
							border-radius: 8rpx;
							color: #FE7526;
							font-size: 24rpx;
							padding: 8rpx 28rpx;
							position: relative;
							left: 30rpx;
						}
					}

					.list-info {
						width: calc(100% - 180rpx);
						display: flex;
						flex-direction: column;

						>view {
							width: 100%;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.title {
							color: #000;
							font-weight: bold;
							font-size: 34rpx;
							width: 360rpx;
						}

						.address {
							color: #999;
							font-size: 26rpx;
							margin-top: 20rpx;
						}

						.label-block {
							font-size: 24rpx;
							display: flex;
							flex-direction: row;
							flex-wrap: wrap;
							justify-content: left;
							margin-top: 20rpx;

							.label-item {
								padding: 8rpx 20rpx;
								background: #F5F6F8;
								color: #999;
								margin: 0 10rpx 20rpx 0;
							}
						}

						.wage {
							color: #FE7526;
							font-size: 36rpx;
							font-weight: bold;

							.unit {
								font-size: 28rpx;
								font-weight: normal;
							}
						}
					}
				}
			}
		}

		.contact {
			position: fixed;
			background: #fff;
			width: 100%;
			bottom: 0;
			left: 0;
			display: flex;
			flex-direction: row;
			padding: 20rpx;
			box-shadow: 0px -5px 10px 0 #efefef;

			.photo {
				background: #efefef;
				border-radius: 50%;
				width: 80rpx;
				height: 80rpx;
				margin-right: 20rpx;
			}

			.name-block {
				width: calc(70% - 200rpx);
			}

			.btn-block {
				width: 45%;
				display: flex;
				flex-direction: row;
				justify-content: left;
				font-size: 28rpx;
				margin-top: 10rpx;

				.chat {
					width: 230rpx;
					border-radius: 40rpx;
					text-align: center;
					height: 60rpx;
					background: #FF7626;
					color: #fff;
					padding-top: 8rpx;
				}

				.resume {
					width: 230rpx;
					border-radius: 40rpx;
					text-align: center;
					padding-top: 8rpx;
					height: 60rpx;
					border: 1px solid #FF7626;
					color: #FF7626;
					margin-right: 20rpx;
				}
			}

			.fs12 {
				margin-top: 5rpx;
			}
		}
	}
</style>